package examples.example1;

import dk.au.cs.peterbn.annotations.Pattern;
import dk.au.cs.peterbn.annotations.Patterns;

@Patterns({
    @Pattern(name="gof:Strategy", id="RateStrategy", role="ConcreteStrategy"),
    @Pattern(name="gof:State", id="AlternatingStrategyState", role="ConcreteState") })
public class ProgressiveRateStrategy implements RateStrategy {
    @Override
    public int calculateTime(int amount) {
        return amount * 2 / 5;
    }
}
